package me.a_littlesquid.origin.events;

import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerItemConsumeEvent;
import org.bukkit.inventory.ItemStack;

public class milkuse implements Listener {
    @EventHandler
    public void onMilkUse(PlayerItemConsumeEvent event){
        ItemStack itemStack=event.getItem();
        if (itemStack.getType().equals(Material.MILK_BUCKET)){
            event.setCancelled(true);
        }
    }
}
